﻿var CityID = "";


function initCityMoreImg(ID) {
    CityID = ID;

    var locationUrl = window.location.href;
    var arrUrl = locationUrl.split("/");
    var arr = arrUrl[arrUrl.length - 1];

    var TrademarkID = arr.split('?');

    MoreCityImgGetMessage(CityID, TrademarkID[0]);

    document.getElementById("backShop").href = '../../City/Trademark/' + arr;
}

function MoreCityImgGetMessage(CityID, TrademarkID) {


    $.getJSON('/City/getTrademark/' + TrademarkID + "," + CityID, { t: new Date() }, function(j) {

        var arr = new Array();

        for (var i = 0; i < j.length; i++) {

            var values = j[i];

            arr = values.split('|');
            var chineseName = arr[0];
            var japonicName = arr[1];
            if (japonicName == "" || japonicName == null) {
                japonicName = '无';
            }
            var englishName = arr[2];

            var officialweb = arr[6];

            var shopadd = arr[4];

            var shoptraffic = arr[8];

            var businesshours = arr[14];

            var tel = arr[12];

            var message = arr[5];


            $("#shopName").html(chineseName);


        }

    })
}